# coding:utf8

import MySQLdb

conn = MySQLdb.connect(host='127.0.0.1', user='root', passwd='123456', charset='utf8', db='test')

cursor = conn.cursor()

print cursor.execute("insert into article_innodb(title, content, add_time) values('标题1','内容1', now())")
print cursor.execute("insert into article_innodb(tadfaitle, content, add_time) values('标题1',内容1, now())")

conn.commit()


# 关闭游标
cursor.close()
# 关闭连接
conn.close()
